package com.ucs.domain;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class Order {
	 private List<OrderDetail> orderDetails = new ArrayList<OrderDetail>();
	 private int orderID=0;
	 private int ticketNum=0;
	 private int orderType=6; //dine in
	 private int tableID=0;
	 private int userID=-1;
	 
	 private int stationNum=0;
	 private String	remark="";
	 private Date created=new Date();
	 private int active=1;
	 private int send=0;
	 
	 private int guestNum=1;
	 private String TROUTD="";
	 private String reference="";
	 private int paymentType=0;
	 private String tableText="";
	 
	 private String trackData="";
	 
	public void setOrderDetails(List<OrderDetail> orderDetails) {
		this.orderDetails = orderDetails;
	}
	public List<OrderDetail> getOrderDetails() {
		return orderDetails;
	}
	public void setOrderID(int orderID) {
		this.orderID = orderID;
	}
	public int getOrderID() {
		return orderID;
	}
	public void setTicketNum(int ticketNum) {
		this.ticketNum = ticketNum;
	}
	public int getTicketNum() {
		return ticketNum;
	}
	public void setOrderType(int orderType) {
		this.orderType = orderType;
	}
	public int getOrderType() {
		return orderType;
	}
	public void setTableID(int tableID) {
		this.tableID = tableID;
	}
	public int getTableID() {
		return tableID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	public int getUserID() {
		return userID;
	}
	public void setStationNum(int stationNum) {
		this.stationNum = stationNum;
	}
	public int getStationNum() {
		return stationNum;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getRemark() {
		return remark;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getCreated() {
		return created;
	}
	public void setActive(int active) {
		this.active = active;
	}
	public int getActive() {
		return active;
	}
	public void setSend(int send) {
		this.send = send;
	}
	public int getSend() {
		return send;
	}
	public void setGuestNum(int guestNum) {
		this.guestNum = guestNum;
	}
	public int getGuestNum() {
		return guestNum;
	}
	public void setTROUTD(String tROUTD) {
		TROUTD = tROUTD;
	}
	public String getTROUTD() {
		return TROUTD;
	}
	public void setReference(String reference) {
		this.reference = reference;
	}
	public String getReference() {
		return reference;
	}
	public void setPaymentType(int paymentType) {
		this.paymentType = paymentType;
	}
	public int getPaymentType() {
		return paymentType;
	}
	public void setTableText(String tableText) {
		this.tableText = tableText;
	}
	public String getTableText() {
		return tableText;
	}
	public void setTrackData(String trackData) {
		this.trackData = trackData;
	}
	public String getTrackData() {
		return trackData;
	}

	@SuppressWarnings("unchecked")
	public static void main(String[] args) throws Exception{
		InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("SqlMapConfig_order.xml");
		SqlMapClient sqlMapClient = SqlMapClientBuilder.buildSqlMapClient(is);
		sqlMapClient.getCurrentConnection();
//		sqlMapClient.update("saveOrder_m", new Order());
//		System.out.println(RestUtil.toXML(l));
	}
}
